<?php  namespace Admin\Controller;

//订单控制器
class OrdersController extends CommonController{
	
	public function index(){
		$orderModel = new \Common\Model\Orders;
		$ordernum =$orderModel->count();
		$page = Page::row(8)->make($ordernum);
		View::with('page',$page);
		$data = $orderModel->orderBy('generatedtime','desc')->limit(Page::limit())->get();
		View::with('data',$data);
		View::make();
	}

}


 ?>